import { GCellRenderer } from "../../../../../com/mui/controls/GCellRenderer";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
//class RefreshPanelCellRender
    
    export  class RefreshPanelCellRender extends GCellRenderer
    {
        constructor()
        {
            super();
            this.init();
            this.addEventListener(flash.events.MouseEvent.MOUSE_MOVE, this.onMouseMove);
            this.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.onMouseOut);
            return;
        }

        public init(): void
        {
            this._across = GlobalClass.getBitmap("PullDownAcross");
            this._across.visible = false;
            this.addChild(this._across);
            this._nameText = new GTextFiled();
            this._nameText.selectable = false;
            this._nameText.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._nameText.textColor = 11661567;
            this.addChild(this._nameText);
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            var loc1=arg1["label"] as string;
            this._nameText.text = loc1;
            return;
        }

        /* internal  */onMouseMove(arg1: Object /* flash.events.MouseEvent */): void
        {
            this._across.visible = true;
            this._nameText.textColor = 16055808;
            return;
        }

        /* internal  */onMouseOut(arg1: Object /* flash.events.MouseEvent */): void
        {
            this._across.visible = false;
            this._nameText.textColor = 11661567;
            return;
        }

        /* internal */ /* var */_across: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_nameText: GTextFiled;
    }
